﻿
namespace BT.Engine.Components
{
    public class Food : Item, IEffect
    {

        public FoodType Type { get; private set; }

        public Food(FoodType type)
        {
            Type = type;
        }

        public int GetEffect()
        {
            switch (Type)
            {
                case FoodType.Banana:
                    return 1;
                case FoodType.Watermelon:
                    return 1;
                case FoodType.Kiwi:
                    return 1;
                case FoodType.Lemon:
                    return 1;
                case FoodType.Bonbon:
                    return -1;
                case FoodType.Lollipop:
                    return -1;
                case FoodType.Fries:
                    return -1;
                case FoodType.Cake:
                    return -1;
                case FoodType.Donut:
                    return -1;
            }
            return 0;
        }

    }
}
